home *** CD-ROM | disk | FTP | other *** search
- .\" Sccs id goes here
- '\"macro stdmacro
- .\" Copyright (c) 1995, Sun Microsystems, Inc.
- .\" All Rights Reserved
- .nr X
- .TH pam_test 5 "19 October 1995"
- .SH NAME
- pam_test \- authentication management functions for testing PAM
- .SH SYNOPSIS
- .LP
- .B /usr/lib/security/pam_test.so
- .P
- .LP
- .SH DESCRIPTION
- .IX "pam_test" "" "\fLpam_test\fP \(em authentication management for testing PAM"
- .PP
- The TEST service module for PAM is divided
- into four components: The
- .I authentication, account management, password management,
- and
- .I session management.
- The test is a shared object that is dynamically loaded to provide
- the necessary functionality.
- .SH TEST Authentication Component
- The TEST authentication module, typically
- .I /usr/lib/security/pam_test.so,
- provides functions to test the PAM framework functionality using the
- .B pam_sm_authenticate(3)
- call.
- The TEST module implementation of the
- .B pam_sm_authenticate(3)
- function compares the user entered password with the password set in the
- .BR pam.conf(4)
- file, or the string "test" if a default test password has not been set.
- The following options may be passed in to the TEST Authentication module:
- .RS
- .IP debug 15
- Syslog debugging information at the LOG_DEBUG level.
- .IP passwd=foobar 15
- Sets the password to be "foobar".
- .IP first_pass_good 15
- The first password is always good when used with the use_first_pass or
- try_first_pass option.
- .IP first_pass_bad 15
- The first password is always bad when used with the use_first_pass or
- try_first_pass option.
- .IP always_fail 15
- Always returns PAM_AUTH_ERR.
- .IP always_succeed 15
- Always returns PAM_SUCCESS.
- .IP always_ignore 15
- Always returns PAM_IGNORE.
- .IP use_first_pass 15
- Use the user's initial password (entered when the user is authenticated to the
- first authentication module in the stack) to authenticate with the TEST module.
- If the passwords do not match, or if this is the first authentication module in the
- stack, quit and do not prompt the user for a password. It is
- recommended that this option only be used if the TEST authentication
- module is designated as
- .I optional
- in the
- .B pam.conf
- configuration file.
- .IP try_first_pass 15
- Use the user's initial password (entered when the user is authenticated to the
- first authentication module in the stack) to authenticate with the TEST module.
- If the passwords do not match, or if this is the first authentication module
- in the stack, prompt the user for a password.
- .RE
- .PP
- The TEST module
- .B pam_sm_setcred(3)
- function always returns PAM_SUCCESS.
- .SH TEST Account Management Component
- The TEST Account Management Component
- .B (pam_sm_acct_mgmt(3))
- always returns PAM_SUCCESS.
- .SH TEST Password Management Component
- The TEST Password Management Component function
- .B (pam_sm_chauthtok(3)),
- always returns PAM_SUCCESS.
- .SH TEST Session Management Component
- The TEST Session Management Component functions
- .B (pam_sm_open_session(3),
- .B pam_sm_close_session(3))
- always return PAM_SUCCESS.
- .SH "SEE ALSO"
- .BR pam (3),
- .BR pam.conf (4)
-